package router

import (
	"api/internal/api"
	"api/internal/middleware"
	"github.com/gin-gonic/gin"
)

func ExamRouter(c *gin.RouterGroup) {
	examRouter := c.Group("exam").Use(middleware.Middleware())
	{
		examRouter.POST("create", api.CreateExam)
		examRouter.GET("list", api.ListExam)
		examRouter.GET("find", api.FindExam)
		examRouter.POST("begin", api.ExamBegin)
		examRouter.POST("rank", api.ExamRank)
	}
}
